package com.pig4cloud.pig.yu.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 车辆信息管理
 */
@Data
@TableName("car_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "车辆信息管理")
public class CarInfoEntity extends Model<CarInfoEntity> {
	/**
	* 主键id
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="主键id")
    private Long infoId;

	/**
	* 车辆编号
	*/
    @Schema(description="车辆编号")
    private String carCode;

	/**
	* 汽车款式
	*/
    @Schema(description="汽车款式")
    private Long styleId;

	/**
	* 汽车驱动
	*/
    @Schema(description="汽车驱动")
    private String carDrive;

	/**
	* 排放标准
	*/
    @Schema(description="排放标准")
    private String emissionStandards;

	/**
	* 汽车颜色
	*/
    @Schema(description="汽车颜色")
    private String carColer;

	/**
	* 变数箱
	*/
    @Schema(description="变数箱")
    private String cearbox;

	/**
	* 座位数
	*/
    @Schema(description="座位数")
    private String seatsNums;

	/**
	* 燃料类型
	*/
    @Schema(description="燃料类型")
    private String fuelType;

	/**
	* 收车成本
	*/
    @Schema(description="收车成本")
    private String costOfCollection;

	/**
	* 售价
	*/
    @Schema(description="售价")
    private BigDecimal sellingPrice;

	/**
	* 状态
	*/
    @Schema(description="状态")
    private String status;

	/**
	* 出厂时间
	*/
    @Schema(description="出厂时间")
    private LocalDate factoryTime;

	/**
	* 标签
	*/
    @Schema(description="标签")
    private Long lableId;

	/**
	* 是否已售
	*/
    @Schema(description="是否已售")
    private String isSelling;

	/**
	* 图片
	*/
    @Schema(description="图片")
    private String pictures;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String remark;

	/**
	* 逻辑删除
	*/
    @TableLogic
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="逻辑删除")
    private Integer delFlag;

	@TableField(exist = false)
	private Long brandId;

	@TableField(exist = false)
	private String brandName;

	@TableField(exist = false)
	private String series;

	@TableField(exist = false)
	private Long modelId;

	@TableField(exist = false)
	private String modelName;

	@TableField(exist = false)
	private String styleName;

	@TableField(exist = false)
	private String labelName;

	@TableField(exist = false)
	private String color;
}